﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ELS_Proj.Template.DragContent
{
    public partial class StringItem : UserControl, DragInterface
    {
        bool inTemplate = false;

        public StringItem()
        {
            InitializeComponent();
        }

        private void StringItem_MouseDown(object sender, MouseEventArgs e)
        {
            DragDropEffects effect = DoDragDrop(this, DragDropEffects.Copy);
        }

        public UserControl makeNewObject()
        {
            StringItem item = new StringItem();
            item.textBox.Enabled = true;
            item.textBox.Text = "";
            item.inTemplate = true;
            return item;
        }

        public bool isInTemplate()
        {
            return inTemplate;
        }

        public void disableControls()
        {
        }

        public void enableControls()
        {
        }
    }
}
